package cn.com.git.workflow.server.ctrler;

import cn.com.git.common.base.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * 入口
 */
@Controller
public class GlobalCtrler extends BaseController {

    /**
     * 系统主页
     * @return
     */
    @RequestMapping(value = {"","/","/index"},method = RequestMethod.GET)
    public ModelAndView index() {
        ModelAndView mv = new ModelAndView("index");
        return mv;
    }

    /**
     * 系统欢迎页
     * 现在暂时为空
     * @return
     */
    @RequestMapping(value = "/home/index", method = RequestMethod.GET)
    public String home() {
        return "home/index";
    }

}
